package com.cyh.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyh.dao.dto.RoomDto;
import com.cyh.dao.dto.SeatDto;
import com.cyh.dao.entity.Room;
import com.cyh.dao.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomMapper extends BaseMapper<Room> {
    List<RoomDto> getRoomList(@Param("buildId") Long buildId,@Param("dmtIs") Integer dmtIs);

    List<SeatDto> getSeatList(@Param("roomId") Long roomId);

    List<RoomDto> getTimeIntervalList(@Param("timeInterval") Long timeInterval);

    Room autoReserveSeatList(@Param("roomId") Long roomId, @Param("timeInterval") Integer timeInterval);

    List<RoomDto> getNeedTimeIntervalList(@Param("timeInterval") Integer timeInterval);
}
